#include<memory>
#include<iostream>
using namespace std;

class Test {
public:
	~Test() {
		cout << "~Test()" << endl;
	}
};

class Derive :public Test {
public:
	~Derive() {
		cout << "~Derive" << endl;
	}
};

//int main() {
//	std::shared_ptr<Test> sp(new Derive());
//}